<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html lang="en">
	<head>
	    <meta charset="UTF-8">
	</head>
	<body>
		<div>
		<a href="/project/input.htm">新增</a>
		<br/>
		search <br/>
		<form action="/project/list.htm" method="post">
			name: <input type="text" name="name" value="${name}"/>
			<input type="submit" value="search"/>
		</form>
			<table border="1">
				<tr>
					<td>序号</td>
					<td>名字</td>
					<td>描述</td>
				</tr>
				<c:forEach items="${projects}" var="p">
				<tr>
					<td>${p.id}</td>
					<td>${p.name}</td>
					<td>${p.description}</td>
					<td><a href="/project/input.htm?id=${p.id}">编辑</a> | <a href="/project/delete.htm?id=${p.id}">删除</a></td>
				</tr>
				</c:forEach>
			</table>
		</div>
	</body>
</html>